import Purchase from "@/views/purchase";
import PurchaseSupplierManagement from "@/views/purchase/purchaseSupplierManagement";
import PurchaseOrder from "@/views/purchase/purchaseOrder";
import PurchaseReturn from "@/views/purchase/purchaseReturn";
import PurcaseInfo from "@/views/purchase/purcaseInfo";
import PurchaseUpdate from "@/views/purchase/purchaseUpdate";


const purchaseRoutes = [{
    path: "purchase",
    component: Purchase,
    redirect: "purchase/purchaseSupplierManagement",
    //嵌套路由
    children: [
        {
            path: "purchaseSupplierManagement",
            component: PurchaseSupplierManagement
        },
        {
            path: "purchaseOrder",
            component: PurchaseOrder
        },
        {
            path: "purchaseReturn",
            component: PurchaseReturn
        },
        {
            path:"purcaseInfo",
            component:PurcaseInfo
        },
        {
            path:"purchaseUpdate",
            component:PurchaseUpdate
        }
    ]
}]

export default purchaseRoutes